<?php

namespace app\admin\model;

use think\Model;


class TaskConfig extends Model
{





    // 表名
    protected $name = 'task_config';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    public function paramstype()
    {
        return $this->belongsTo('ParamsType', 'params_type_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function getParamsTypeList()
    {
        return ['1' => 'dsp', '2' => 'create', '3' => 'job', '4' => 'kuaipai','5'=>'dongfang','6'=>'chromium','7'=>'baoguang'];
    }










}
